package com.cn.yang.controller;

import com.alibaba.fastjson.JSONObject;
import com.cn.yang.bean.CodeManage;
import com.cn.yang.bean.Text;
import com.cn.yang.service.CodeManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/")
public class TextController {
    @RequestMapping("/group")
    public void selectCodeType(@RequestBody List<Text> list){
        System.out.println(list.get(0).getTitle());
    }
}
